﻿using System.ComponentModel.DataAnnotations;

namespace PartyInvites.Models
{
    public class GuestReponse
    {
        [Required(ErrorMessage = "请输入姓名")]
        public string Name { get; set; }
        [Required(ErrorMessage = "请输入邮箱")]
        [RegularExpression(".+\\@.+\\..+",ErrorMessage="请输入合法邮箱")]
        public string Email { get; set; }
        [Required(ErrorMessage="请输入手机号码")]
        public string Phone { get; set; }
        [Required(ErrorMessage="请选择是否参加")]
        public bool? WillAttend { get; set; }
    }
}